package com.zyg.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zyg.dao.StudentMapper;
import com.zyg.pojo.EchartsData;
import com.zyg.pojo.Student;
import com.zyg.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("studentService")
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {

  @Autowired
  private StudentMapper studentMapper;

    @Override
    public List<EchartsData> getGnderData() {
        return studentMapper.getGenderData();
    }

    @Override
    public List<EchartsData> getMajorData() {
        return  studentMapper.getMajorData();
    }

    @Override
    public List<EchartsData> getMajorGenderData() {
        return  studentMapper.getMajorGenderData();
    }

    @Override
    public List<EchartsData> getGradeData() {
        return  studentMapper.getGradeData();
    }

    @Override
    public List<EchartsData> getClassDataTop6() {
        return  studentMapper.getClassDataTop6();
    }

    @Override
    public List<EchartsData> getDormData() {
        return  studentMapper.getDormData();
    }
}
